#include <iostream>
using namespace std;
using LL = long long;
LL n;
LL num = 0;
int main()
{
    scanf("%lld", &n);
    for (LL i = 2; i <= n / i; ++i)
    {
        if (n % i == 0)
        {
            // 多一次判断常数会加倍
            ++num;
            while (n % i == 0)
                n /= i;
        }
    }
    if (n != 1)
        ++num;
    printf("%lld", num);
    return 0;
}